package com.qiangesoft.blog.controller.web;

import com.qiangesoft.blog.common.mvc.PageQuery;
import com.qiangesoft.blog.common.mvc.PageResultVO;
import com.qiangesoft.blog.core.pojo.vo.ToolInfoVO;
import com.qiangesoft.blog.core.service.IBlogToolService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 工具管理 前端控制器
 * </p>
 *
 * @author qiange
 * @since 2023-06-08
 */
@Api(tags = "工具管理")
@RestController
@RequestMapping("/api/tool")
@RequiredArgsConstructor
public class ApiBlogToolController {

    private final IBlogToolService blogToolService;

    @ApiOperation("查询工具")
    @GetMapping
    public PageResultVO<ToolInfoVO> listTool(@Validated PageQuery pageQuery) {
        return blogToolService.listTool(pageQuery);
    }

}

